import React from 'react'
import IndexPage from './pages/Index/Index'
import Mywk from './pages/Mywk/Mywk'
import Accout from './pages/Account/Account'
import Dashboard from './Dashboard'
import {Router} from 'react-router'
import {
    Route,
    Switch
  } from 'react-router-dom'
import history from './history'

class RouterList extends React.Component{
    render(){
        return(
        <Router history={history}>
            <div>
                <Switch>
                    <Route exact path="/" component={IndexPage} ></Route>
                    <Route path="/mywk" component={Mywk}></Route>
                    <Route path="/account" component={Accout}></Route>
                    <Route component={Dashboard}></Route>
                </Switch>
            </div>
        </Router>
        )
    }
}

export default RouterList
